﻿using XinLife.Model;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using SqlSugar;

namespace XinLife.Model
{
    public class UserInputDto
    {
        public string cId { get; set; }
        public string cUserName { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string cName { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string cTel { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public int cGender { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int cAge { get; set; }
        public bool cEnabled { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string cRegionCode { get; set; }
        public string cRegionName { get; set; }

        [SugarColumn(IsIgnore = true)]
        public virtual string[] Roles { get; set; }
    }

    public class UserOutputDto:User
    {
        public string cProvinceCode { get; set; }
        public string cProvinceName { get; set; }

        public string cCityCode { get; set; }
        public string cCityName { get; set; }

        [SugarColumn(IsIgnore = true)]
        public virtual List<UserRoleOutputDto> UserRoles { get; set; }
    }
}
